package aygx.ip.spring.boot.starter.config;

import aygx.ip.spring.boot.starter.service.IpService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 暗影孤星
 * @date 2022/7/31 23:10
 * @description
 */
@EnableScheduling
@Import(IpProperties.class)
public class IpAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public IpService ipCountService() {
        return new IpService();
    }
}